package cn.enilu.flash.service.park;

import cn.enilu.flash.bean.entity.park.ParkingCarRef;
import cn.enilu.flash.dao.park.ParkingCarRefRepository;
import cn.enilu.flash.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description
 * @Author Spark
 * @Date Created in (2019/12/12 11:13)
 * @Version v1.0
 * @Modify
 **/
@Service
public class ParkingTaskService extends BaseService<ParkingCarRef,Long, ParkingCarRefRepository> {
    @Autowired
    private ParkingCarRefRepository parkingCarRefRepository;

    @Transactional(rollbackFor = Exception.class)
    public void modify(){
        parkingCarRefRepository.modifyActive();
        parkingCarRefRepository.modifyDisable();
        parkingCarRefRepository.modifyParkingOwnerFlag();
    }
}
